#ifndef __CStringWriter_H__
#define __CStringWriter_H__

#include <lampe/stream/IStringWriter.h>

namespace lampe{
namespace stream{

class CStringWriter:public IStringWriter{
private:
    String data;
    u32 pos;
public:
    virtual u32 position();
    virtual void position(u32 position);
    virtual u32 size();
    virtual u32 write(void* buffer, u32 size);
    virtual String getData();
    CStringWriter();
    ~CStringWriter();
};

}//namespace stream
}//namespace lampe
#endif
